package com.ruoyi.order.station.request.instance;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

@Data
public class DB5405 {

    //PCB编码1
    @S7Variable(byteOffset = 0, arraySize = 62, type = S7Type.BYTE)
    public byte[] pcbCode1;

    //PCB编码2
    @S7Variable(byteOffset = 64, arraySize = 62, type = S7Type.BYTE)
    public byte[] pcbCode2;

    //PCB编码3
    @S7Variable(byteOffset = 128, arraySize = 62, type = S7Type.BYTE)
    public byte[] pcbCode3;

    //PCB编码4
    @S7Variable(byteOffset = 192, arraySize = 62, type = S7Type.BYTE)
    public byte[] pcbCode4;

    //侧板二维码
    @S7Variable(byteOffset = 256, arraySize = 62, type = S7Type.BYTE)
    public byte[] sidePanelCode;

    //盖板二维码
    @S7Variable(byteOffset = 320, arraySize = 62, type = S7Type.BYTE)
    public byte[] coverCode;

    // 检查结果
    @S7Variable(byteOffset = 384, bitOffset = 0, type = S7Type.WORD)
    public Integer result;
}
